package com.itheima.obj;

/**
 * 判断对象是否相同
 */
public class TestEquals {

    public static void main(String[] args) {
        Student huang = new Student("0001", "黄子韬",28 );
        Student wu = new Student("0002", "吴亦凡",28 );
        Student zitao = new Student("0001", "黄子韬",28 );
        System.out.println(huang==wu);
        System.out.println(huang==zitao);

    }
}
